package com.baike.springcloud.entity;

import java.io.Serializable;

/**
 * 部门类
 */

//必须序列化
public class Dept implements Serializable {

    //主键
    private Long deptNo;
    //部门名称
    private String deptName ;
    //来自哪个数据库，因为微服务可以是一个服务对应一个数据库，同一个信息被存储到不同数据库
    private String db_source;

    public Dept() {

    }

    public Dept(String deptName) {
        this.deptName = deptName;
    }

    public Long getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(Long deptNo) {
        this.deptNo = deptNo;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDb_source() {
        return db_source;
    }

    public void setDb_source(String db_source) {
        this.db_source = db_source;
    }

}
